<%@ page import="greendbgui.ElectoralRollEntry" %>



<div class="fieldcontain ${hasErrors(bean: electoralRollEntryInstance, field: 'address', 'error')} required">
	<label for="address">
		<g:message code="electoralRollEntry.address.label" default="Address" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="address" name="address.id" from="${greendbgui.Address.list()}" optionKey="id" required="" value="${electoralRollEntryInstance?.address?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: electoralRollEntryInstance, field: 'electoralRoll', 'error')} required">
	<label for="electoralRoll">
		<g:message code="electoralRollEntry.electoralRoll.label" default="Electoral Roll" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="electoralRoll" name="electoralRoll.id" from="${greendbgui.ElectoralRoll.list()}" optionKey="id" required="" value="${electoralRollEntryInstance?.electoralRoll?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: electoralRollEntryInstance, field: 'person', 'error')} required">
	<label for="person">
		<g:message code="electoralRollEntry.person.label" default="Person" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="person" name="person.id" from="${greendbgui.Person.list()}" optionKey="id" required="" value="${electoralRollEntryInstance?.person?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: electoralRollEntryInstance, field: 'refPrefix', 'error')} ">
	<label for="refPrefix">
		<g:message code="electoralRollEntry.refPrefix.label" default="Ref Prefix" />
		
	</label>
	<g:textField name="refPrefix" value="${electoralRollEntryInstance?.refPrefix}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: electoralRollEntryInstance, field: 'refSuffix', 'error')} ">
	<label for="refSuffix">
		<g:message code="electoralRollEntry.refSuffix.label" default="Ref Suffix" />
		
	</label>
	<g:textField name="refSuffix" value="${electoralRollEntryInstance?.refSuffix}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: electoralRollEntryInstance, field: 'voteType', 'error')} ">
	<label for="voteType">
		<g:message code="electoralRollEntry.voteType.label" default="Vote Type" />
		
	</label>
	<g:textField name="voteType" value="${electoralRollEntryInstance?.voteType}"/>
</div>

